
<template>
  <div class="crumbs ac">
    <img
      @click="routerGo"
      src="@/assets/icons/Component511.svg"
      alt=""
      srcset=""
    />
    <h2 class="o-title">{{ props.title || "title" }}</h2>
  </div>
</template>
<script lang="ts" setup>
import { useRouter } from "vue-router";
const props = defineProps(["title"]);

//获取路由器对象
let $router = useRouter();
const routerGo = () => {
  $router.go(-1);
};
</script>
<style lang="scss" scoped>
.crumbs {
  margin-bottom: 20px;
  img {
    cursor: pointer;
  }
  h2 {
    margin-left: 10px;
  }
}
</style>
